import axios from 'axios';
const request=axios.create({
    baseURL:'/api'
})
//请求拦截
request.interceptors.request.use(req => {
    // @ts-ignore
    req.headers.token = localStorage.getItem('token') ?? ''
    return req
})
//返回拦截

export default request;